package com.cimpm.task.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.typeHandler.*;

import java.util.Date;

@TableName("task_default_form")
public class DefaultForm {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@TableField(value = "`sponsor`")
	private Integer sponsor;

	@TableField(value = "`task_name`")
	private String taskName;

	@TableField(value = "`task_type`")
	private Integer taskType;

	@TableField(value = "`name`")
	private String name;

	@TableField(value = "`step_name`")
	private String stepName;

    @TableField(value = "`create_time`", typeHandler = DateTypeHandler.class)
    private String createTime;

    @TableField(value = "`edit_time`", typeHandler = DateTypeHandler.class)
    private String editTime;

	@TableField(value = "`executor`")
	private Integer executor;

	@TableField(value = "`description`")
	private String description;

	@TableField(value = "`note`")
	private String note;

    @TableLogic
    @TableField(value = "`is_deleted`")
    private Date isDeleted;

    @Version
    @TableField(value = "`version`")
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getSponsor() { return sponsor; }

    public void setSponsor(Integer sponsor) { this.sponsor = sponsor; }

    public String getTaskName() { return taskName; }

    public void setTaskName(String taskName) { this.taskName = taskName; }

    public Integer getTaskType() { return taskType; }

    public void setTaskType(Integer taskType) { this.taskType = taskType; }

    public String getName() { return name; }

    public void setName(String name) { this.name = name; }

    public String getStepName() { return stepName; }

    public void setStepName(String stepNmae) { this.stepName = stepNmae; }

    public String getCreateTime() { return createTime; }

    public void setCreateTime(String createTime) { this.createTime = createTime; }

    public String getEditTime() { return editTime; }

    public void setEditTime(String editTime) { this.editTime = editTime; }

    public Integer getExecutor() { return executor; }

    public void setExecutor(Integer excutor) { this.executor = excutor; }

    public String getDescription() { return description; }

    public void setDescription(String description) { this.description = description; }

    public String getNote() { return note; }

    public void setNote(String note) { this.note = note; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "defaultForm{" +
            "id=" + id +
            ", sponsor=" + sponsor +
            ", taskName=" + taskName +
            ", taskType=" + taskType +
            ", name=" + name +
            ", stepName=" + stepName +
            ", createTime=" + createTime +
            ", editTime=" + editTime +
            ", executor=" + executor +
            ", description=" + description +
            ", note=" + note +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
